__author__ = '付鹏飞'
# -*- coding: UTF-8 -*-

import requests

file_path = 'D:/python-workspace/file/download'

def download(url, title):
    response = requests.get(url)
    with open("%s/%s.mp3" % (file_path, title), "wb") as f:
        f.write(response.content)
